<?php
	$currency = get_post_meta(get_the_ID() , 'building_currency' , true);
	$arr_currency = explode('/',$currency);
	$extra = '';
	$isForSale = get_post_meta(get_the_ID() ,'building_type', false);
	foreach( $isForSale as $items){
		if( $items == 'For Rent'){
			$extra = '/'.$arr_currency[1];
		}
	}
?>		
<li class="item">
	<h4 class="item-image">
		<a href="<?php the_permalink(); ?>">
			<?php returnImageFirst($post);?>
		</a>
	</h4>
	<h3 class="item-name">
		<a href="<?php the_permalink(); ?>"><?php the_title();?></a>
	</h3>
	<p class="price"><?php _e('Price:','building')?><span>$<?php echo number_format( get_post_meta(get_the_ID() , 'building_cost' , true), 2) ;?></span>
</p>
</li>